home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 July / macformat-026.iso / mac / Shareware City / Utilities / File Safari ƒ / How To Use File Safari < prev    next >
Encoding:
Text File  |  1995-02-23  |  10.3 KB  |  290 lines  |  [ttro/ttxt]

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                          File Safari
  8.  
  9.                                                                                        or
  10.  
  11.              The Barney Fife Subconscious Prober Primer
  12.  
  13. What the heck is it?
  14.  
  15. Another program I made because all the others like it have some features that are useful, but none have all the features in one app. This is your basic search–all–files–in–a–folder–for–a–string app, except it allows you to store commonly–used directories. It also has a bunch of helpful options. The main reason I wrote File Safari was to have a quick and simple utility for finding function prototypes and #defines in .h files; a program without a bunch of useless memory– and disk–wasting junk like fancy graphics and sounds; a program with one well–defined purpose, not a do–all file locator (System 7.5 already has that).
  16.  
  17. File Safari supports Balloon Help in all menus and dialogs. If the Balloon Help isn’t enough, read the rest of this file (use TeachText or SimpleText because it contains PICT’s and styled text).
  18.  
  19. Yes, the main window is a modeless dialog. I don’t care if I’m violating a few HIG’s—it looks cool.
  20.  
  21. This program was first named “Jonny Quest”, but someone suggested I change it before Hanna–Barbera’s lawyers got ahold of my skinny neck. “File Safari” keeps the adventurous theme, so I didn’t have to ditch the binoculars. :) Why “The Barney Fife Subconscious Prober Primer”? Because “probe” jumped out of the thesaurus while I was trying to come up with a name and I’m a big Andy Griffith Show fan. Any TAGS fan knows what the The Barney Fife Subconscious Prober Primer is (“Gosh darn you Otis!”). Why two names? I dunno. I’m weird.
  22.  
  23. This program (File Safari) is © 1994 Armpit Studios VII by Steve Mills. This program may NOT be distributed in any way, except for being uploaded to ftp sites, online services, BBS’s, etc. It may NOT be distributed on CD’s, disks, or any other medium without permission of the author. This product is freeware. But if you absolutely feel the need to send me money, I won’t fight it. ;) No annoying shareware notices in this product. IMO, shareware authors who resort to those types of tactics should get a life.
  24.  
  25. I assume no responsibility for lost data due to use or misuse of this program, etc, blah blah blah, yatta yatta yatta.
  26.  
  27. Steve Mills
  28. Armpit Studios VII
  29. 2219 Davis St.
  30. Iowa City, IA 52240
  31.  
  32. MuffinHed@aol.com
  33.  
  34. MuffinHead on ISCABBS (bbs.isca.uiowa.edu)
  35.  
  36.  
  37. On to the program…
  38.  
  39. First, the menus…
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. Resource Editor []…
  55. This lets you choose a resource editing application to use for viewing matches found in a file’s resource fork. The name will be placed into the brackets or it will be [none] if you haven’t chosen one yet.
  56.  
  57. Ask Before Opening Resource Files
  58. If you want to be asked each time you double–click on a resource fork match if you want to use your resource editor, check this menu item. Otherwise, un–check it.
  59.  
  60. TEXT Editor []…
  61. This lets you choose a default application to view TEXT files. If you don’t choose a default TEXT editor, the application that created the file will be used. The name will be placed into the brackets or it will be [none] if you haven’t chosen one yet.
  62. If for some reason the creator application of a file whose match you double–click can’t accept the Apple® Event to open the file, you will be asked if you would like to open the file with your TEXT Editor instead.
  63. Power users can use the application they’ve set to be their TEXT Editor to open any type of file by Option–double–clicking any file in the results list.
  64.  
  65. Use TEXT Editor
  66. Turn this on to have your default TEXT editor open the files. Turn it off to use the file’s actual creator.
  67.  
  68. Save Results…
  69. Use this to save the entire search results to a TEXT file.
  70.  
  71. Quit
  72. Do I really need to tell you what this does?
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81. Cut, Copy, & Paste
  82. So you can copy and paste strings in and out of the Search String in the main window.
  83.  
  84.  
  85. Now the main window…
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97. (On monitors of 640 pixels wide or larger, the window will be 640 wide instead of 512.)
  98.  
  99. Search String
  100. Type the string you want to search within files for here.
  101.  
  102. Search Directory
  103. The starting folder or disk where the search will start. All folders within this folder/disk will also be searched, and folders within those folders, etc…
  104. Note that in addition to the methods listed later, you can drag & drop folders or disks onto the File Safari icon in the Finder to use them as the Search Dir.
  105.  
  106. The little Search Dir popup menu
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119. If you have added directories to this list, you can choose those to be the Search Dir by simply choosing them from this menu. In the following image, the user has chosen a Search Dir by clicking on the Other… button or by drag & dropping a file onto File Safari’s icon in the Finder and selecting a directory. Now the menu looks like this:
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132. As you can see, the top item, Add Current Search Dir, is enabled. By choosing the Add Current Search Dir menu item, the current Search Dir will be added to the end of this menu. If you want to delete one of the entries, hold down the Option key while choosing the item to delete from the menu. It will be deleted.
  133. The Recent Search Dirs menu item stores all Search Dir’s added by the Other… button or by drag & dropping them onto File Safari’s icon in the Finder. This list is maintained until you Quit.
  134.  
  135. Other…
  136. Click this button to choose your Search Directory.
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157. The Select xxxx button will select the current directory you are within, not the currently hilited folder or disk. If the user hit Return in the above picture, the resulting dialog box would look like the following:
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179. Now hitting Return will select the folder named “PunchClock ƒ” as the Search Dir. Typing Command–S is equivalent to clicking the Select xxxx button so you can select directories from the keyboard when the Select xxxx button isn’t the default button.
  180.  
  181. Search Options popup menu
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192. Ignore Case
  193. Turn this on so the case of the Search String is ignored. Example: If the Search String is “lerxt” and Ignore Case is turned ON, then “LERXT”, “Lerxt”, and “lerxt” will all be found. If Ignore Case is turned OFF, only “lerxt” will be found.
  194.  
  195. Ignore Diacriticals
  196. Turn this on so any characters with a diacritical mark will be converted to the same char without the diacritical. Example: If the Search String is “Äbõtt” and Ignore Diacriticals is turned ON, then “Abott”, “Äbott”, and “Abõtt” will be found. If Ignore Case is turned OFF, only “Äbõtt” will be found. If both Ignore Case and Ignore Diacriticals are turned ON, then “abõtt” and “aBOTT” will also be found.
  197.  
  198. Data Fork
  199. Turn this on to search the data fork of files. If you don’t know what that means, leave it turned on.
  200.  
  201. Resource Fork
  202. Turn this on to search the resource fork of files. If you don’t know what that means, turn it OFF.
  203.  
  204. TEXT Files Only
  205. Turn this on to limit the search to plain ‘TEXT’ files only. If this is turned on, no matches will be found in WriteNow, PageMaker, or M$ Word documents, for example.
  206.  
  207. 1st Occurrence Only
  208. If you only want to see the 1st occurrence of a match in each file, turn this on. Otherwise all matches in each file will be shown in the results. Yes, I corrected the spelling of the menu item.
  209.  
  210. Search button
  211. Click this to start the search. This will only be enabled if you have entered a Search String and chosen a Search Dir. Hitting the Return and Enter keys is the same as clicking on this button. After the searched has started, this button will change to Stop. The search can be stopped at any time by typing Escape, Command–. (Command–Period), Return, or Enter.
  212.  
  213. Hex Search button
  214. Use this button to search for a hexadecimal string instead of an ASCII string. Hex strings can be entered in any of three ways:
  215.  
  216.      C     : 0x12EF or  0X12ef
  217.      Pascal: $12EF  or  $12ef
  218.      Normal: 12EF   or  12ef
  219.  
  220. You can separate each byte—for example—by spaces if you prefer to make it easier to read:
  221.  
  222.      6d 75 66 66   <—— Search String is “muff”
  223.  
  224. The Ignore Case option does apply to the resulting string. If Ignore Case is turned on and the previous hex string was searched for, “MUFF”, “Muff”, and “muff” would all be found. Same with Ignore Diacriticals.
  225.  
  226.  
  227. The main window will look something like this after a search:
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256. Matches
  257. This shows how many matches were found in how many files out of how many files searched.
  258.  
  259. The small area below the Matches area
  260. This will show: The current file being searched during a search; The file’s full pathname when you click on a match in the results area; Other stuff.
  261.  
  262. The larger area below that
  263. This is the search results area. All matches will be displayed here. Click on a match to fully see the file name. Click and hold to get the popup menu containing the file’s Type, Creator, and the offset and the line number at which the match was found. Double–click to open the file. If you’re using any of the Metrowerks editors or BBEdit, File Safari also sends a goto–line Apple® Event to bring the line containing the match into view. If you’re using any other editor that supports a goto–line Æ, let me know and I’ll try to add it to the list.
  264. Power users can Option–double–click a match to force their TEXT Editor to open the file, no matter what type the file is or which fork the match was found in.
  265.  
  266. The triangle
  267. Use this to hide/show the search results info. You can also type Command–Tab to toggle the bottom half of the window.
  268.  
  269. The following items are stored in the File Safari Pref’s file:
  270.   •List of Search Dirs (seen in the Search Dir popup). They appear in the order they’re added to the list.
  271.     ResEditor’s can change the order by cutting and pasting the ‘alis’ rez’s.
  272.   •Resource Editor.
  273.   •State of Ask Before Opening Resource Files menu item.
  274.   •TEXT Editor.
  275.   •State of Use TEXT Editor menu item.
  276.   •Data Fork option.
  277.   •Rez Fork option.
  278.   •TEXT Files Only option.
  279.   •Ignore Case option.
  280.   •Ignore Diacriticals option.
  281.   •1st Occurrence Only option.
  282.   •One other secret option, explained elsewhere.
  283.   •The last Search Dir selected from the Search Dir popup menu.
  284.   •Window position.
  285.  
  286.  
  287. For more info, read the file included in the archive named “Release Note.c”.
  288.  
  289.  
  290. This file was edited with another program of mine that I’ll release some day. It can edit styled and colored text, ‘TEXT’ and ‘styl’ resources, and as a result of a tip I got about a publishing company looking for a small editor that could export RTF files, it can export RTF files.